package org.example.journal_items.service;

import org.example.journal_items.common.Result;
import org.example.journal_items.Entity.User;
import org.springframework.web.multipart.MultipartFile;

public interface UserService {
  Result login(String username, String password);

  Result register(User user);

  Result checkUsername(String username);

  User getUserById(Long userId);

  void updateAvatar(Long userId, String avatar);

  String uploadAvatar(Long userId, MultipartFile file) throws Exception;

  Result updateUserInfo(User user);

  Result logout();

  String getUserTheme(Long userId);

  Result updateUserTheme(Long userId, String theme);
}
